package Solutions

func firstPalindrome(words []string) string {
	for _, v := range words {
		if isPalindromic(v) {
			return v
		}
	}
	return ""
}
func isPalindromic(s string) bool {
	l, r := 0, len(s)-1
	for l < r {
		if s[l] == s[r] {
			l++
			r--
		} else {
			return false
		}
	}
	return true
}
